/**
 * This file is Copyright © 2008 Software Craftsmen Limited. All Rights Reserved.
 */
package com.softwarecraftsmen.cachecontrol.cacheFactories;

import com.softwarecraftsmen.cachecontrol.ComptrolledCache;
import com.softwarecraftsmen.cachecontrol.keys.Key;
import org.jetbrains.annotations.NotNull;

public class UnsupportedCacheFactory implements CacheFactory
{
	@NotNull
	public <V> ComptrolledCache<V> create(@NotNull final Key<V> identifier)
	{
		throw new UnsupportedOperationException("Construction of caches at the time of dispensing is not allowed by default by the Cashier");
	}
}
